from pydantic import BaseModel
from typing import Union
import datetime


class Result(BaseModel):
    message: str
    data: Union[dict, list] = None
    code: int
    total: int = None


def get_now_time() -> str:
    return datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
